package org.kabeja.dxf.helpers;

/**
 * @author shutao
 * @since 2022/4/24 16:29
 */
public class Vector extends Point {
    public Vector() {
    }

    public Vector(Point var1) {
        super(var1.getX(), var1.getY(), var1.getZ());
    }

    public Vector(double var1, double var3, double var5) {
        super(var1, var3, var5);
    }

    public double getLength() {
        return Math.sqrt(Math.pow(this.x, 2.0D) + Math.pow(this.y, 2.0D) + Math.pow(this.z, 2.0D));
    }

    public void normalize() {
        double var1 = Math.sqrt(Math.pow(this.x, 2.0D) + Math.pow(this.y, 2.0D) + Math.pow(this.z, 2.0D));
        this.x /= var1;
        this.y /= var1;
        this.z /= var1;
    }
}
